import Vue from 'vue'
import Vuex from 'vuex'

import commonMethods from "./modules/common"
import msg from './modules/msg.js'
import user from './modules/user.js'
Vue.use(Vuex)

const store = new Vuex.Store({
	modules: {
		namespaced: true, //namespaced写成true，意思就是可以用这个module名作为区分了
		commonMethods,
		msg,
		user
	}
})
export default store